

# remove files from directories that contain output
# - figs/
# - output/
# - output/fits/

unlink("figs/*")
unlink("output/*")
unlink("output/fits/*")

# run all scripts in sequence
source("R/01-clean-issue-meta.R"); rm(list = ls())
source("R/02-create-respondent-data.R"); rm(list = ls())
source("R/03-create-awareness.R"); rm(list = ls())
source("R/04-fit-all-models.R"); rm(list = ls())
source("R/05-plot-fits.R"); rm(list = ls())
source("R/06-plot-treatment-effects-2-0-2.R"); rm(list = ls())
source("R/07-plot-average-effects-2-0-2.R"); rm(list = ls())
source("R/08-compare-methods.R"); rm(list = ls())
source("R/09-sample-size.R"); rm(list = ls())
source("R/10-sample-size-figs.R"); rm(list = ls())
source("R/11-compute-sample-weights.R"); rm(list = ls())
source("R/12-nonparametric.R")
